package com.zufe.khw;

public class LambdaDemo {
    public static void main(String[] args) {
        method(() -> System.out.println("I am swimming"));
    }
    public static void method(Swim s){
        s.swimming();
    }
}
@FunctionalInterface
interface Swim{
    void swimming();
}